package controller.view;

import controller.BaseServlet;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet("/view/*")
public class ViewServlet extends BaseServlet {

    public void login(HttpServletRequest req, HttpServletResponse resp){
        try {
            req.getRequestDispatcher("/html/login.jsp").forward(req,resp);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void article(HttpServletRequest req, HttpServletResponse resp){
        try {
            req.getRequestDispatcher("/html/article.jsp").forward(req,resp);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void articleAdd(HttpServletRequest req, HttpServletResponse resp){
        try {
            req.getRequestDispatcher("/html/article_add.jsp").forward(req,resp);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void articleCollect(HttpServletRequest req, HttpServletResponse resp){
        try {
            req.getRequestDispatcher("/html/article_collect.jsp").forward(req,resp);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void articleDetail(HttpServletRequest req, HttpServletResponse resp){
        try {
            req.getRequestDispatcher("/html/article_detail.jsp").forward(req,resp);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void department(HttpServletRequest req, HttpServletResponse resp){
        try {
            req.getRequestDispatcher("/html/department.jsp").forward(req,resp);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void home(HttpServletRequest req, HttpServletResponse resp){
        try {
            req.getRequestDispatcher("/html/home.jsp").forward(req,resp);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void meeting(HttpServletRequest req, HttpServletResponse resp){
        try {
            req.getRequestDispatcher("/html/meeting.jsp").forward(req,resp);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void meetingAdd(HttpServletRequest req, HttpServletResponse resp){
        try {
            req.getRequestDispatcher("/html/meeting_add.jsp").forward(req,resp);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void meetingDetail(HttpServletRequest req, HttpServletResponse resp){
        try {
            req.getRequestDispatcher("/html/meeting_detail.jsp").forward(req,resp);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void myUser(HttpServletRequest req, HttpServletResponse resp){
        try {
            req.getRequestDispatcher("/html/my_user.jsp").forward(req,resp);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void user(HttpServletRequest req, HttpServletResponse resp){
        try {
            req.getRequestDispatcher("/html/user.jsp").forward(req,resp);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void userDetail(HttpServletRequest req, HttpServletResponse resp){
        try {
            req.getRequestDispatcher("/html/user_detail.jsp").forward(req,resp);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void userLook(HttpServletRequest req, HttpServletResponse resp){
        try {
            req.getRequestDispatcher("/html/user_look.jsp").forward(req,resp);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
